package cn.lhf.cd.entity;

import cn.lhf.cd.domain.OrderModel;

import java.sql.Timestamp;

public class Order {
    private Long id;            //唯一编号
    private String name;        //商品名
    private Timestamp date;     //下单时间

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Timestamp getDate() {
        return date;
    }

    public void setDate(Timestamp date) {
        this.date = date;
    }

    public OrderModel toModel() {
        return new OrderModel(this);
    }
}
